package com.ylyq.ylxx.service.impl;

import com.ylyq.ylxx.entity.YlyqCreativeVideoMaterial;
import com.ylyq.ylxx.mapper.YlyqCreativeVideoMaterialMapper;
import com.ylyq.ylxx.service.IYlyqCreativeVideoMaterialService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 计划的创意视频素材，每次在自动生成计划的时候，生成，在下次模型复制计划时使用，使用了的要删除 服务实现类
 * </p>
 *
 * @author xiaweichao
 * @since 2020-09-10
 */
@Service
public class YlyqCreativeVideoMaterialServiceImpl extends ServiceImpl<YlyqCreativeVideoMaterialMapper, YlyqCreativeVideoMaterial> implements IYlyqCreativeVideoMaterialService {

    @Autowired
    private YlyqCreativeVideoMaterialMapper ylyqCreativeVideoMaterialMapper;

    /**
     * 功能描述：批量插入视频
     * @author 577
     * @param ylyqCreativeVideoMaterialList 视频数据
     * @return
     * @date 2020/11/5
     **/
    @Override
    public int insertBatch(List<YlyqCreativeVideoMaterial> ylyqCreativeVideoMaterialList){
        return ylyqCreativeVideoMaterialMapper.insertBatch(ylyqCreativeVideoMaterialList);
    }
}
